/*
 * Copyright (c) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <securec.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

#include "bus_center_event.h"
#include "softbus_common.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_log.h"

static int32_t GetWifiServiceIpAddr(const char *ifName, char *ip, uint32_t size)
{
    (void *)ifName;
    (void *)ip;
    return SOFTBUS_OK;
}

static int32_t GetIpAddrFromNetlink(const char *ifName, char *ip, uint32_t size)
{
    return SOFTBUS_OK;
}

static bool GetIpProcess(const char *ifName, char *ip, uint32_t size)
{
    (void *)ifName;
    (void *)ip;
    return true;
}

static int32_t GetAvailableIpAddr(const char *ifName, char *ip, uint32_t size)
{
    (void *)ifName;
    (void *)ip;
    return SOFTBUS_OK;
}

static void WifiStateChangeEventHandler(const LnnEventBasicInfo *info)
{
    (void *)info;
    SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_INFO, "wifi state change");
}

NO_SANITIZE("cfi") int32_t RegistIPProtocolManager(void)
{
    return SOFTBUS_OK;
}

NO_SANITIZE("cfi") void InitWifiDirectCapability(void)
{
}